package com.example;

import de.greenrobot.daogenerator.DaoGenerator;
import de.greenrobot.daogenerator.Entity;
import de.greenrobot.daogenerator.Schema;

public class MyClass {
    public static void main(String args []){
        Schema schema = new Schema(1,"com.example.lanou.mynews.db.dao");
        Entity entity = schema.addEntity("Titles");
        entity.addStringProperty("name").primaryKey();
        entity.addStringProperty("type");
        entity.addIntProperty("like");
        entity.addStringProperty("tid");
        entity.addIntProperty("pos");
        try {
            new DaoGenerator().generateAll(schema,"./app/src/main/java");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
